home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / ghostscript / src / unix-gcc.mak < prev    next >
Makefile  |  1994-08-01  |  69KB  |  1,954 lines

  1. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, Unix/gcc/X11 configuration.
  20. # Note: this makefile assumes you are using gcc in ANSI mode.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the installation commands and target directories for
  29. # executables and files.  Only relevant to `make install'.
  30.  
  31. INSTALL = install -c
  32. INSTALL_PROGRAM = $(INSTALL) -m 775
  33. INSTALL_DATA = $(INSTALL) -m 664
  34.  
  35. prefix = /usr/local
  36. exec_prefix = $(prefix)
  37. bindir = $(exec_prefix)/bin
  38. datadir = $(prefix)/lib
  39. gsdatadir = $(datadir)/ghostscript
  40.  
  41. # Define the default directory/ies for the runtime
  42. # initialization and font files.  Separate multiple directories with a :.
  43.  
  44. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  45.  
  46. # Define the name of the Ghostscript initialization file.
  47. # (There is no reason to change this.)
  48.  
  49. GS_INIT=gs_init.ps
  50.  
  51. # Choose generic configuration options.
  52.  
  53. # -DDEBUG
  54. #    includes debugging features (-Z switch) in the code.
  55. #      Code runs substantially slower even if no debugging switches
  56. #      are set.
  57. # -DNOPRIVATE
  58. #    makes private (static) procedures and variables public,
  59. #      so they are visible to the debugger and profiler.
  60. #      No execution time or space penalty.
  61.  
  62. GENOPT=
  63.  
  64. # Define the name of the executable file.
  65.  
  66. GS=gs
  67.  
  68. # ------ Platform-specific options ------ #
  69.  
  70. # Define the name of the C compiler.
  71.  
  72. CC=gcc
  73.  
  74. # Define the other compilation flags.
  75. # Add -DBSD4_2 for 4.2bsd systems.
  76. # Add -DUSG (GNU convention) or -DSYSV for System V or DG/UX.
  77. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  78. #   or any System III Unix, or System V release 3-or-older Unix.
  79. # Add -DSVR4 (not -DSYSV) for System V release 4.
  80. # XCFLAGS can be set from the command line.
  81. # We don't include -ansi, because this gets in the way of the platform-
  82. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  83. #   gcc to accept ANSI-style function prototypes and function definitions.
  84.  
  85. CFLAGS=-g -O $(XCFLAGS)
  86.  
  87. # Define platform flags for ld.
  88. # SunOS and some others want -X; Ultrix wants -x.
  89. # SunOS 4.n may need -Bstatic.
  90. # XLDFLAGS can be set from the command line.
  91.  
  92. LDFLAGS=$(XLDFLAGS)
  93.  
  94. # Define any extra libraries to link into the executable.
  95. # ISC Unix 2.2 wants -linet.
  96. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  97. # (Libraries required by individual drivers are handled automatically.)
  98.  
  99. EXTRALIBS=
  100.  
  101. # Define the include switch(es) for the X11 header files.
  102. # This can be null if handled in some other way (e.g., the files are
  103. # in /usr/include, or the directory is supplied by an environment variable).
  104. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  105. # not in $(XINCLUDE).
  106.  
  107. XINCLUDE=-I/usr/local/X/include
  108.  
  109. # Define the directory/ies for the X11 library files.
  110. # This can be null if these files are in the default linker search path.
  111.  
  112. XLIBDIRS=-L/usr/local/X/lib
  113.  
  114. # ------ Devices and features ------ #
  115.  
  116. # Choose the language feature(s) to include.  See gs.mak for details.
  117.  
  118. FEATURE_DEVS=filter.dev dps.dev level2.dev
  119.  
  120. # Choose the device(s) to include.  See devs.mak for details.
  121.  
  122. DEVICE_DEVS=x11.dev
  123. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev ppm.dev ppmraw.dev bit.dev
  124.  
  125. # ---------------------------- End of options --------------------------- #
  126.  
  127. # Define the name of the makefile -- used in dependencies.
  128.  
  129. MAKEFILE=unix-gcc.mak
  130.  
  131. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  132.  
  133. AK=
  134.  
  135. # Define the compilation rules and flags.
  136.  
  137. CCC=$(CC) $(CCFLAGS) -c
  138.  
  139. # --------------------------- Generic makefile ---------------------------- #
  140.  
  141. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  142. # is generic.  tar_cat concatenates all these together.
  143. #    Copyright (C) 1990, 1991, 1993 Aladdin Enterprises.  All rights reserved.
  144. #
  145. # This file is part of Ghostscript.
  146. #
  147. # Ghostscript is distributed in the hope that it will be useful, but
  148. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  149. # to anyone for the consequences of using it or for whether it serves any
  150. # particular purpose or works at all, unless he says so in writing.  Refer
  151. # to the Ghostscript General Public License for full details.
  152. #
  153. # Everyone is granted permission to copy, modify and redistribute
  154. # Ghostscript, but only under the conditions described in the Ghostscript
  155. # General Public License.  A copy of this license is supposed to have been
  156. # given to you along with Ghostscript so you can know your rights and
  157. # responsibilities.  It should be in a file named COPYING.  Among other
  158. # things, the copyright notice and this notice must be preserved on all
  159. # copies.
  160.  
  161. # Partial makefile for Ghostscript, common to all Unix configurations.
  162.  
  163. # This part of the makefile gets inserted after the compiler-specific part
  164. # (xxx-head.mak) and before gs.mak and devs.mak.
  165.  
  166. # ----------------------------- Generic stuff ----------------------------- #
  167.  
  168. # Define the platform name.  For a "stock" System V platform,
  169. # use sysv_ instead of unix_.
  170.  
  171. PLATFORM=unix_
  172.  
  173. # Define the extensions for the object and executable files.
  174.  
  175. OBJ=o
  176. XE=
  177.  
  178. # Define the current directory prefix, shell quote string, and shell names.
  179.  
  180. EXP=./
  181. QQ=\"
  182. SHELL=/bin/sh
  183. SH=$(SHELL)
  184. SHP=$(SH) $(EXP)
  185.  
  186. # Define the compilation rules and flags.
  187.  
  188. CCFLAGS=$(GENOPT) $(CFLAGS)
  189.  
  190. .c.o: $(AK)
  191.     $(CCC) $*.c
  192.  
  193. CCCF=$(CCC)
  194. CCD=$(CCC)
  195. CCINT=$(CCC)
  196. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  197. #
  198. # This file is part of Ghostscript.
  199. #
  200. # Ghostscript is distributed in the hope that it will be useful, but
  201. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  202. # to anyone for the consequences of using it or for whether it serves any
  203. # particular purpose or works at all, unless he says so in writing.  Refer
  204. # to the Ghostscript General Public License for full details.
  205. #
  206. # Everyone is granted permission to copy, modify and redistribute
  207. # Ghostscript, but only under the conditions described in the Ghostscript
  208. # General Public License.  A copy of this license is supposed to have been
  209. # given to you along with Ghostscript so you can know your rights and
  210. # responsibilities.  It should be in a file named COPYING.  Among other
  211. # things, the copyright notice and this notice must be preserved on all
  212. # copies.
  213.  
  214. # Generic makefile for Ghostscript.
  215. # The platform-specific makefiles `include' this file.
  216. # They define the following symbols:
  217. #    GS - the name of the executable (without the extension, if any).
  218. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  219. #        initialization and font files at run time.
  220. #    DEVICE_DEVS - the devices to include in the executable.
  221. #        See devs.mak for details.
  222. #    DEVICE_DEVS1...DEVICE_DEVS9 - additional devices, if the definition of
  223. #        DEVICE_DEVS doesn't fit on one line.
  224. #        See devs.mak for details.
  225. #    FEATURE_DEVS - the optional features to include in the
  226. #        executable.  Current features are:
  227. #            dps - (partial) support for Display PostScript extensions:
  228. #            see language.doc for details.
  229. #            level2 - (partial) support for PostScript Level 2
  230. #            extensions: see language.doc for details.
  231. #            compfont - support for composite (type 0) fonts.
  232. #            *** NOT IMPLEMENTED YET. ***
  233. #            filter - support for Level 2 filters (other than eexec,
  234. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  235. #            and SubFileDecode, which are always included).
  236. #            ccfonts - precompile fonts into C, and link them
  237. #            with the executable.  In the standard makefiles,
  238. #            this is only implemented for a very few fonts:
  239. #            see fonts.doc for details.
  240. # It is very unlikely that anyone would want to edit the remaining
  241. #   symbols, but we describe them here for completeness:
  242. #    GS_INIT - the name of the initialization file for Ghostscript,
  243. #        normally gs_init.ps.
  244. #    PLATFORM - a "device" name for the platform, so that platforms can
  245. #        add various kinds of resources like devices and features.
  246. #    QQ - a " preceded by whatever escape characters are needed to
  247. #        persuade the shell to pass a " to a program (" on MS-DOS,
  248. #        \" on Unix).
  249. #    XE - the extension for executable files (e.g., null or .exe).
  250. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  251. #    BEGINFILES - the list of files that `make begin' should delete.
  252. #    CCBEGIN - the compilation command for `make begin', normally
  253. #        $(CCC) *.c.
  254. #    CCC - the C invocation for normal compilation.
  255. #    CCD - the C invocation for files that store into frame buffers or
  256. #        device registers.  Needed because some optimizing compilers
  257. #        will eliminate necessary stores.
  258. #    CCCF - the C invocation for compiled fonts and other large,
  259. #        self-contained data modules.  Needed because MS-DOS
  260. #        requires using the 'huge' memory model for these.
  261. #    CCINT - the C invocation for compiling the main interpreter module,
  262. #        normally the same as CCC: this is needed because the
  263. #        Borland compiler generates *worse* code for this module
  264. #        (but only this module) when optimization (-O) is turned on.
  265. #    AK - if source files must be converted from ANSI to K&R syntax,
  266. #        this is ansi2knr$(XE); if not, it is null.
  267. #        If a particular platform requires other utility programs
  268. #        to be built, AK must include them too.
  269. #    SHP - the prefix for invoking a shell script in the current directory
  270. #        (null for MS-DOS, $(SH) ./ for Unix).
  271. #    EXPP, EXP - the prefix for invoking an executable program in the
  272. #        current directory (null for MS-DOS, ./ for Unix).
  273. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  274. # The platform-specific makefiles must also include rules for creating
  275. #   ansi2knr$(XE), genarch$(XE), and genconf$(XE) from the corresponding
  276. #   .c files -- this is needed because Turbo C and Unix C treat the -o
  277. #   switch slightly differently (Turbo C requires no following space,
  278. #   Unix C requires a following space), and I haven't found a way to capture
  279. #   the difference in a macro.
  280.  
  281. all default: $(GS)$(XE)
  282.  
  283. distclean realclean: clean
  284.     rm -f makefile
  285.  
  286. clean mostlyclean:
  287.     rm -f *.$(OBJ) *.a core gmon.out
  288.     rm -f *.dev *.d_* arch.h gconfig*.h o*.tr l*.tr
  289.     rm -f t _temp_* _temp_*.* *.map *.sym
  290.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) genconf$(XE)
  291.     rm -f $(GS)$(XE) $(BEGINFILES)
  292.  
  293. # A rule to do a quick and dirty compilation attempt when first installing
  294. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  295.  
  296. begin:
  297.     rm -f arch.h genarch$(XE) $(GS)$(XE) $(BEGINFILES)
  298.     make arch.h
  299.     - $(CCBEGIN)
  300.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  301.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ) zfiledev.$(OBJ)
  302.  
  303. # Auxiliary programs
  304.  
  305. arch.h: genarch$(XE)
  306.     $(EXPP) $(EXP)genarch arch.h
  307.  
  308. # -------------------------------- Library -------------------------------- #
  309.  
  310. # Define the inter-dependencies of the .h files.
  311. # Since not all versions of `make' defer expansion of macros,
  312. # we must list these in bottom-to-top order.
  313.  
  314. # Generic files
  315.  
  316. arch_h=arch.h
  317. std_h=std.h $(arch_h)
  318.  
  319. # Platform interfaces
  320.  
  321. gp_h=gp.h
  322. gpcheck_h=gpcheck.h
  323.  
  324. # C library interfaces
  325.  
  326. # Because of variations in the "standard" header files between systems, and
  327. # because we must include std.h before any file that includes sys/types.h,
  328. # we define local include files named *_.h to substitute for <*.h>.
  329.  
  330. vmsmath_h=vmsmath.h
  331.  
  332. dos__h=dos_.h
  333. ctype__h=ctype_.h $(std_h)
  334. errno__h=errno_.h
  335. malloc__h=malloc_.h $(std_h)
  336. math__h=math_.h $(std_h) $(vmsmath_h)
  337. memory__h=memory_.h $(std_h)
  338. stat__h=stat_.h $(std_h)
  339. stdio__h=stdio_.h $(std_h)
  340. string__h=string_.h $(std_h)
  341. time__h=time_.h $(std_h)
  342. windows__h=windows_.h
  343.  
  344. # Miscellaneous
  345.  
  346. gdebug_h=gdebug.h
  347. gsio_h=gsio.h
  348. gstypes_h=gstypes.h
  349. gs_h=gs.h $(stdio__h) $(gsio_h) $(gstypes_h)
  350. gx_h=gx.h $(gs_h) $(gdebug_h)
  351. gconfig_h=gconfig.h gsconfig.h
  352. gserrors_h=gserrors.h
  353.  
  354. GX=$(AK) $(gx_h)
  355. GXERR=$(GX) $(gserrors_h)
  356.  
  357. ###### Low-level facilities and utilities
  358.  
  359. ### Include files
  360.  
  361. gsccode_h=gsccode.h
  362. gschar_h=gschar.h $(gsccode_h)
  363. gscie_h=gscie.h
  364. gscolor_h=gscolor.h
  365. gscolor2_h=gscolor2.h
  366. gscoord_h=gscoord.h
  367. gscrypt1_h=gscrypt1.h
  368. gscspace_h=gscspace.h
  369. gsfont_h=gsfont.h
  370. gsimage_h=gsimage.h
  371. gsmatrix_h=gsmatrix.h
  372. gspaint_h=gspaint.h
  373. gspath_h=gspath.h
  374. gsprops_h=gsprops.h
  375. gsstate_h=gsstate.h $(gscolor_h)
  376. gstype1_h=gstype1.h
  377. gsuid_h=gsuid.h
  378. gsutil_h=gsutil.h
  379. gsxfont_h=gsxfont.h
  380.  
  381. gxarith_h=gxarith.h
  382. gxbitmap_h=gxbitmap.h
  383. gxcache_h=gxcache.h $(gsuid_h) $(gsxfont_h)
  384. gxcdir_h=gxcdir.h
  385. gxchar_h=gxchar.h $(gschar_h)
  386. gxclist_h=gxclist.h
  387. # gxcldev is out of order because it include gxclist.
  388. gxcldev_h=gxcldev.h $(gxclist_h)
  389. gxcpath_h=gxcpath.h
  390. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gsxfont_h) $(gxbitmap_h)
  391. gxdevmem_h=gxdevmem.h
  392. gxfdir_h=gxfdir.h $(gxcdir_h)
  393. gxfixed_h=gxfixed.h
  394. gxfont_h=gxfont.h $(gsfont_h) $(gsuid_h)
  395. gxfrac_h=gxfrac.h
  396. gximage_h=gximage.h $(gscspace_h) $(gsimage_h)
  397. gxlum_h=gxlum.h
  398. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  399. gxop1_h=gxop1.h
  400. gxpath_h=gxpath.h
  401. gxrefct_h=gxrefct.h
  402. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  403. gxxfont_h=gxxfont.h $(gsccode_h) $(gsmatrix_h) $(gsuid_h) $(gsxfont_h)
  404. # gxcolor and gxfmap are out of order because they include other files.
  405. gxcolor_h=gxcolor.h $(gxfrac_h) $(gsuid_h)
  406. gxfmap_h=gxfmap.h $(gxfrac_h) $(gxrefct_h)
  407.  
  408. gzcolor_h=gzcolor.h $(gscolor_h) $(gxfmap_h) $(gxlum_h)
  409. gzdevice_h=gzdevice.h $(gxdevice_h)
  410. gzht_h=gzht.h
  411. gzline_h=gzline.h
  412. gzpath_h=gzpath.h $(gxpath_h)
  413. gzstate_h=gzstate.h $(gsstate_h) $(gxfixed_h) $(gxmatrix_h)
  414.  
  415. ### Executable code
  416.  
  417. gp_nofb.$(OBJ): gp_nofb.c $(AK) \
  418.   $(gx_h) $(gp_h) $(gxdevice_h)
  419.  
  420. gsutil.$(OBJ): gsutil.c $(AK) \
  421.   $(std_h) $(gsprops_h) $(gsutil_h)
  422.  
  423. gxccache.$(OBJ): gxccache.c $(GXERR) $(gpcheck_h) \
  424.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  425.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  426.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h) \
  427.   $(gscspace_h) $(gsimage_h)
  428.  
  429. gxccman.$(OBJ): gxccman.c $(GXERR) $(gpcheck_h) \
  430.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  431.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  432.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h)
  433.  
  434. gxclist.$(OBJ): gxclist.c $(GXERR) $(gpcheck_h) \
  435.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  436.  
  437. gxclread.$(OBJ): gxclread.c $(GXERR) $(gpcheck_h) \
  438.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  439.  
  440. gxcmap.$(OBJ): gxcmap.c $(GXERR) \
  441.   $(gscspace_h) \
  442.   $(gxcolor_h) $(gxdevice_h) $(gxfrac_h) $(gxlum_h) \
  443.   $(gzcolor_h) $(gzstate_h)
  444.  
  445. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  446.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  447.  
  448. gxdither.$(OBJ): gxdither.c $(GX) \
  449.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  450.  
  451. gxdraw.$(OBJ): gxdraw.c $(GXERR) $(gpcheck_h) \
  452.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  453.  
  454. gxfill.$(OBJ): gxfill.c $(GXERR) \
  455.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  456.  
  457. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  458.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) \
  459.   $(gzdevice_h) $(gzstate_h)
  460.  
  461. gxhint2.$(OBJ): gxhint2.c $(GXERR) \
  462.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) $(gxop1_h) \
  463.   $(gzdevice_h) $(gzstate_h)
  464.  
  465. gxht.$(OBJ): gxht.c $(GXERR) \
  466.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  467.  
  468. gxpath.$(OBJ): gxpath.c $(GXERR) \
  469.   $(gxfixed_h) $(gzpath_h)
  470.  
  471. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  472.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  473.  
  474. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  475.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  476.  
  477. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  478.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  479.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  480.  
  481. ###### High-level facilities
  482.  
  483. gschar.$(OBJ): gschar.c $(GXERR) \
  484.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gxcache_h) $(gstype1_h) $(gspath_h) $(gzpath_h) $(gzcolor_h) $(gzstate_h)
  485.  
  486. gscolor.$(OBJ): gscolor.c $(GXERR) \
  487.   $(gscspace_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  488.   $(gzstate_h) $(gzcolor_h)
  489.  
  490. gscoord.$(OBJ): gscoord.c $(GXERR) \
  491.   $(gsccode_h) $(gxarith_h) $(gxfixed_h) $(gxfont_h) $(gxmatrix_h) \
  492.   $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  493.  
  494. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  495.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxbitmap_h) $(gxdevmem_h) \
  496.   $(gzstate_h) $(gzdevice_h)
  497.  
  498. gsfile.$(OBJ): gsfile.c $(GXERR) \
  499.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  500.  
  501. gsfont.$(OBJ): gsfont.c $(GXERR) \
  502.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  503.   $(gzstate_h)
  504.  
  505. gsht.$(OBJ): gsht.c $(GXERR) \
  506.   $(gzht_h) $(gzstate_h)
  507.  
  508. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  509.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  510.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  511.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  512.  
  513. gsimage1.$(OBJ): gsimage1.c $(GXERR) $(gpcheck_h) \
  514.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  515.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  516.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  517.  
  518. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  519.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  520.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  521.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  522.  
  523. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  524.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  525.  
  526. gsline.$(OBJ): gsline.c $(GXERR) \
  527.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  528.  
  529. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  530.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  531.  
  532. gsmisc.$(OBJ): gsmisc.c $(GX) $(errno__h) $(malloc__h) $(memory__h) $(MAKEFILE)
  533.     $(CCC) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  534.  
  535. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  536.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  537.  
  538. gspath.$(OBJ): gspath.c $(GXERR) \
  539.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  540.  
  541. gspath2.$(OBJ): gspath2.c $(GXERR) \
  542.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  543.  
  544. gsstate.$(OBJ): gsstate.c $(GXERR) \
  545.   $(gscie_h) $(gscolor2_h) $(gscspace_h) $(gxcolor_h) $(gxrefct_h) \
  546.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  547.  
  548. gstdev.$(OBJ): gstdev.c $(GXERR) \
  549.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  550.  
  551. gstype1.$(OBJ): gstype1.c $(GXERR) \
  552.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  553.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  554.  
  555. ###### The internal devices
  556.  
  557. gdevmem_h=gdevmem.h
  558.  
  559. gdevemap.$(OBJ): gdevemap.c $(AK) $(std_h)
  560.  
  561. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  562.   $(gx_h) $(gserrors_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  563.  
  564. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  565.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  566.  
  567. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  568.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  569.  
  570. ###### Files dependent on the installed devices, features, and platform.
  571. # Generating gconfig.h also generates o*.tr and l*.tr.
  572.  
  573. # gconfig.h shouldn't have to depend on ALL_DEVS, but that would
  574. # involve rewriting gsconfig to only save the device name, not the
  575. # contents of the <device>.D_# files.
  576.  
  577. ALL_DEVS=$(FEATURE_DEVS) $(PLATFORM).dev \
  578.   $(DEVICE_DEVS) $(DEVICE_DEVS1) \
  579.   $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5)\
  580.   $(DEVICE_DEVS6) $(DEVICE_DEVS7) $(DEVICE_DEVS8) $(DEVICE_DEVS9)
  581.  
  582. gconfig.h obj.tr objw.tr ld.tr lib.tr: \
  583.   devs.mak $(MAKEFILE) echogs$(XE) genconf$(XE) $(ALL_DEVS)
  584.     $(EXP)echogs -w t.cfg - $(FEATURE_DEVS) $(PLATFORM).dev
  585.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS)
  586.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS1)
  587.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS2)
  588.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS3)
  589.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS4)
  590.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS5)
  591.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS6)
  592.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS7)
  593.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS8)
  594.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS9)
  595.     $(EXP)genconf @t.cfg -h gconfig.h -l lib.tr -o obj.tr -u ld.tr -w objw.tr
  596.     rm t.cfg
  597.     $(EXP)echogs -a gconfig.h -x 23 define GS_LIB_DEFAULT -x 2022 $(GS_LIB_DEFAULT) -x 22
  598.     $(EXP)echogs -a gconfig.h -x 23 define GS_INIT -x 2022 $(GS_INIT) -x 22
  599.  
  600. gconfig.$(OBJ): gconfig.c $(AK) $(gconfig_h) $(MAKEFILE)
  601.  
  602. ###### On Unix, we pre-link all of the library except the back end.
  603. ###### On MS-DOS, we have to do the whole thing at once.
  604.  
  605. LIBGS=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  606.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsht.$(OBJ) \
  607.  gsimage.$(OBJ) gsimage1.$(OBJ) gsimage2.$(OBJ) \
  608.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  609.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  610.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  611.  gxccache.$(OBJ) gxccman.$(OBJ) gxclist.$(OBJ) gxclread.$(OBJ) \
  612.  gxcmap.$(OBJ) gxcpath.$(OBJ) \
  613.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) \
  614.  gxhint1.$(OBJ) gxhint2.$(OBJ) gxht.$(OBJ) \
  615.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  616.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  617.  
  618. # ------------------------------ Interpreter ------------------------------ #
  619.  
  620. ###### Include files
  621.  
  622. alloc_h=alloc.h
  623. astate_h=astate.h
  624. ccfont_h=ccfont.h
  625. dict_h=dict.h
  626. dparam_h=dparam.h
  627. dstack_h=dstack.h
  628. errors_h=errors.h
  629. estack_h=estack.h
  630. filedev_h=filedev.h
  631. files_h=files.h
  632. font_h=font.h
  633. ilevel_h=ilevel.h
  634. iname_h=iname.h
  635. iref_h=iref.h
  636. iscan_h=iscan.h
  637. ivmspace_h=ivmspace.h
  638. iutil_h=iutil.h
  639. main_h=main.h
  640. opdef_h=opdef.h
  641. ostack_h=ostack.h
  642. overlay_h=overlay.h
  643. packed_h=packed.h
  644. save_h=save.h
  645. scanchar_h=scanchar.h
  646. sbits_h=sbits.h
  647. shc_h=shc.h
  648. state_h=state.h
  649. store_h=store.h
  650. stream_h=stream.h
  651. # Nested include files
  652. bfont_h=bfont.h $(font_h)
  653. ghost_h=ghost.h $(gx_h) $(iref_h)
  654. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  655. scf_h=scf.h $(shc_h)
  656. sdct_h=sdct.h $(shc_h)
  657. # Include files for optional features
  658. bnum_h=bnum.h
  659. bseq_h=bseq.h
  660. btoken_h=btoken.h
  661.  
  662. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  663.  
  664. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  665.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  666.  
  667. ###### Utilities
  668.  
  669. GH=$(AK) $(ghost_h)
  670.  
  671. ialloc.$(OBJ): ialloc.c $(AK) $(gx_h) $(alloc_h) $(astate_h) $(ivmspace_h)
  672.  
  673. iccfont.$(OBJ): iccfont.c $(GH) gconfigf.h \
  674.   $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) \
  675.   $(font_h) $(iutil_h) $(iname_h) $(oper_h) $(save_h) $(store_h)
  676.  
  677. idebug.$(OBJ): idebug.c $(GH) \
  678.   $(iutil_h) $(dict_h) $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  679.  
  680. idict.$(OBJ): idict.c $(GH) \
  681.   $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(packed_h) \
  682.   $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  683.  
  684. idparam.$(OBJ): idparam.c $(GH) \
  685.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  686.  
  687. iinit.$(OBJ): iinit.c $(GH) $(gconfig_h) \
  688.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(ilevel_h) $(iname_h) $(oper_h) $(store_h)
  689.  
  690. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(store_h)
  691.  
  692. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(errors_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  693.  
  694. iscan.$(OBJ): iscan.c $(GH) $(ctype__h) \
  695.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) \
  696.   $(ilevel_h) $(iutil_h) $(iscan_h) $(ivmspace_h) \
  697.   $(iname_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  698.  
  699. iutil.$(OBJ): iutil.c $(GH) \
  700.   $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(ivmspace_h) \
  701.   $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  702.   $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  703.  
  704. sfilter.$(OBJ): sfilter.c $(AK) $(stdio__h) \
  705.   $(scanchar_h) $(stream_h) $(gscrypt1_h)
  706.  
  707. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(memory__h) \
  708.   $(gpcheck_h) $(scanchar_h) $(stream_h)
  709.  
  710. ###### Operators
  711.  
  712. OP=$(GH) $(errors_h) $(oper_h)
  713.  
  714. ### Non-graphics operators
  715.  
  716. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  717.  
  718. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  719.  
  720. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  721.  
  722. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(iname_h) $(store_h)
  723.  
  724. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  725.   $(alloc_h) $(estack_h) $(filedev_h) $(files_h) $(ilevel_h) $(iutil_h) \
  726.   $(save_h) $(stream_h) $(store_h)
  727.  
  728. zfiledev.$(OBJ): zfiledev.c $(OP) $(string__h) $(gp_h) $(gconfig_h) \
  729.   $(filedev_h) $(files_h) $(stream_h)
  730.  
  731. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  732.   $(estack_h) $(files_h) $(iscan_h) $(store_h) $(stream_h) \
  733.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  734.  
  735. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  736.  
  737. zgeneric.$(OBJ): zgeneric.c $(OP) \
  738.   $(dict_h) $(estack_h) $(ivmspace_h) $(iname_h) $(packed_h) $(store_h)
  739.  
  740. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  741.  
  742. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) $(errno__h) $(memory__h) $(string__h) \
  743.   $(alloc_h) $(dict_h) $(dstack_h) $(iname_h) $(ivmspace_h) $(packed_h) $(store_h) \
  744.   $(gscrypt1_h)
  745.  
  746. zpacked.$(OBJ): zpacked.c $(OP) \
  747.   $(alloc_h) $(dict_h) $(ivmspace_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  748.  
  749. zprops.$(OBJ): zprops.c $(OP) \
  750.   $(alloc_h) $(dict_h) $(iname_h) $(state_h) $(store_h) \
  751.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h) $(gsstate_h)
  752.  
  753. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  754.  
  755. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  756.  
  757. zstring.$(OBJ): zstring.c $(OP) \
  758.   $(alloc_h) $(iscan_h) $(iutil_h) $(iname_h) $(store_h) $(stream_h)
  759.  
  760. ztype.$(OBJ): ztype.c $(OP) \
  761.   $(dict_h) $(iscan_h) $(iutil_h) $(iname_h) $(stream_h) $(store_h)
  762.  
  763. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  764.   $(gsmatrix_h) $(gsstate_h)
  765.  
  766. ###### Graphics operators
  767.  
  768. zchar.$(OBJ): zchar.c $(OP) $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) \
  769.   $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  770.   $(alloc_h) $(dict_h) $(font_h) $(estack_h) $(ilevel_h) $(iname_h) $(state_h) $(store_h)
  771.  
  772. zcolor.$(OBJ): zcolor.c $(OP) $(alloc_h) $(estack_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gzcolor_h) $(iutil_h) $(state_h) $(store_h)
  773.  
  774. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  775.  
  776. zfont.$(OBJ): zfont.c $(OP) \
  777.   $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) $(gxcache_h) \
  778.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  779.  
  780. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  781.   $(bfont_h) $(dict_h) $(dparam_h) $(iname_h) $(store_h)
  782.  
  783. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  784.   $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(ilevel_h) $(iname_h) \
  785.   $(packed_h) $(save_h) $(store_h)
  786.  
  787. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  788.  
  789. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  790.  
  791. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  792.  
  793. zpaint.$(OBJ): zpaint.c $(OP) \
  794.   $(alloc_h) $(estack_h) $(ilevel_h) $(state_h) $(store_h) $(stream_h) \
  795.   $(gsimage_h) $(gsmatrix_h) $(gspaint_h)
  796.  
  797. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  798.  
  799. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  800.  
  801. ###### Linking
  802.  
  803. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  804.  iinit.$(OBJ) iname.$(OBJ) \
  805.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  806.  sfilter.$(OBJ) stream.$(OBJ) \
  807.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  808.  zfile.$(OBJ) zfiledev.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  809.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  810.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  811.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  812.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  813.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  814.  
  815. # -------------------------- Optional features ---------------------------- #
  816.  
  817. ### Additions common to Display PostScript and Level 2
  818.  
  819. # We have to split up the module list because of limitations
  820. # on the number of arguments to a DOS batch file.
  821. dpsand2a_=gsdps1.$(OBJ) ibnum.$(OBJ) iscan2.$(OBJ)
  822. dpsand2b_=zbseq.$(OBJ) zchar2.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ) zvmem2.$(OBJ)
  823. dpsand2_=$(dpsand2a_) $(dpsand2b_)
  824. dpsand2.dev: $(dpsand2_)
  825.     $(SHP)gssetmod dpsand2 $(dpsand2a_)
  826.     $(SHP)gsaddmod dpsand2 -obj $(dpsand2b_)
  827.     $(SHP)gsaddmod dpsand2 -oper2 zbseq zchar2 zdps1 zupath zvmem2
  828.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  829.  
  830. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gxfixed_h) $(gxmatrix_h) $(gzpath_h) $(gzstate_h)
  831.  
  832. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  833.  
  834. iscan2.$(OBJ): iscan2.c $(GH) $(errors_h) \
  835.   $(alloc_h) $(dict_h) $(dstack_h) $(iscan_h) $(iutil_h) $(ivmspace_h) \
  836.   $(iname_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) \
  837.   $(bseq_h) $(btoken_h) $(bnum_h)
  838.  
  839. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(iname_h) $(bnum_h) $(btoken_h) $(bseq_h)
  840.  
  841. zchar2.$(OBJ): zchar2.c $(OP) $(gschar_h) $(gsmatrix_h) $(gxfixed_h) $(gxfont_h) \
  842.   $(alloc_h) $(estack_h) $(font_h) $(iname_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  843.  
  844. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  845.   $(alloc_h) $(ivmspace_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  846.  
  847. zupath.$(OBJ): zupath.c $(OP) \
  848.   $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  849.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  850.   $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  851.  
  852. zvmem2.$(OBJ): zvmem2.c $(OP) \
  853.   $(ivmspace_h) $(store_h)
  854.  
  855. ### Display PostScript
  856. # We should include zcontext, but it isn't in good enough shape yet:
  857. #    $(SHP)gsaddmod dps -oper2 zcontext
  858.  
  859. dps_=
  860. dps.dev: dpsand2.dev $(dps_)
  861.     $(SHP)gssetmod dps $(dps_)
  862.     $(SHP)gsaddmod dps -include dpsand2
  863.  
  864. zcontext.$(OBJ): zcontext.c $(OP) \
  865.   $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  866.  
  867. ### Composite font support
  868.  
  869. gschar0.$(OBJ): gschar0.c $(GXERR) \
  870.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  871.  
  872. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  873.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(state_h) $(store_h)
  874.  
  875. compfont_=zchar2.$(OBJ) zfont0.$(OBJ) gschar0.$(OBJ)
  876. compfont.dev: $(compfont_)
  877.     $(SHP)gssetmod compfont $(compfont_)
  878.     $(SHP)gsaddmod compfont -oper zfont0 zchar2
  879.     $(SHP)gsaddmod compfont -ps gs_type0
  880.  
  881. ### Level 2 additions
  882.  
  883. # We have to split up the module list because of limitations
  884. # on the number of arguments to a DOS batch file.
  885. level2a_=gscie.$(OBJ) gscolor2.$(OBJ) zcie.$(OBJ) zcolor2.$(OBJ)
  886. level2b_=zcspace2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ) zmisc2.$(OBJ)
  887. level2_=$(level2a_) $(level2b_)
  888. level2.dev: compfont.dev dpsand2.dev filter.dev $(level2_)
  889.     $(SHP)gssetmod level2 $(level2a_)
  890.     $(SHP)gsaddmod level2 -obj $(level2b_)
  891.     $(SHP)gsaddmod level2 -include compfont dpsand2 filter
  892.     $(SHP)gsaddmod level2 -oper zmisc2_level
  893.     $(SHP)gsaddmod level2 -oper2 zcie zcolor2 zcspace2
  894.     $(SHP)gsaddmod level2 -oper2 zht2 zimage2 zmisc2
  895.     $(SHP)gsaddmod level2 -ps gs_lev2
  896.  
  897. gscie.$(OBJ): gscie.c $(GXERR) \
  898.   $(gscspace_h) $(gscie_h) $(gscolor2_h) \
  899.   $(gxarith_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  900.   $(gzcolor_h) $(gzstate_h)
  901.  
  902. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  903.   $(gscie_h) $(gscolor2_h) $(gscspace_h) \
  904.   $(gxcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxrefct_h) \
  905.   $(gzcolor_h) $(gzstate_h)
  906.  
  907. zcie.$(OBJ): zcie.c $(OP) \
  908.   $(gscspace_h) $(gscolor2_h) $(gscie_h) $(gxcolor_h) $(gxrefct_h) \
  909.   $(alloc_h) $(dict_h) $(dparam_h) $(estack_h) $(save_h) $(state_h) $(store_h)
  910.  
  911. zcolor2.$(OBJ): zcolor2.c $(OP) \
  912.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  913.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  914.  
  915. zcspace2.$(OBJ): zcspace2.c $(OP) \
  916.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  917.   $(dict_h) $(dparam_h) $(estack_h) $(iname_h) $(state_h) $(store_h)
  918.  
  919. zht2.$(OBJ): zht2.c $(OP) \
  920.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  921.  
  922. zimage2.$(OBJ): zimage2.c $(OP) \
  923.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) $(gxcolor_h) \
  924.   $(dict_h) $(dparam_h) $(ilevel_h) $(state_h)
  925.  
  926. zmisc2.$(OBJ): zmisc2.c $(OP) \
  927.   $(gsfont_h) \
  928.   $(dict_h) $(dparam_h) $(dstack_h) $(estack_h) $(ilevel_h) $(iname_h) $(store_h)
  929.  
  930. ### Filters other than the ones in sfilter.c
  931.  
  932. sbits.$(OBJ): sbits.c $(AK) $(stdio__h) $(sbits_h) $(stream_h)
  933.  
  934. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  935.  
  936. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  937.  
  938. scfd.$(OBJ): scfd.c $(AK) $(stdio__h) $(gdebug_h)\
  939.   $(sbits_h) $(scf_h) $(stream_h)
  940.  
  941. scfe.$(OBJ): scfe.c $(AK) $(stdio__h) $(gdebug_h)\
  942.   $(sbits_h) $(scf_h) $(stream_h)
  943.  
  944. sdctd.$(OBJ): sdctd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  945.  
  946. sdcte.$(OBJ): sdcte.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  947.  
  948. sfilter2.$(OBJ): sfilter2.c $(AK) $(stdio__h) $(scanchar_h) $(stream_h)
  949.  
  950. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  951.  
  952. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  953.  
  954. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(sdct_h) $(stream_h)
  955.  
  956. # Because of size limits on the DOS command line,
  957. # we have to break this up into two parts.
  958. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ) sbits.$(OBJ)
  959. filter_2=scfdtab.$(OBJ) scftab.$(OBJ) scfd.$(OBJ) scfe.$(OBJ) 
  960. filter_3=sdctd.$(OBJ) sdcte.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  961. filter.dev: $(filter_1) $(filter_2) $(filter_3)
  962.     $(SHP)gssetmod filter $(filter_1)
  963.     $(SHP)gsaddmod filter -obj $(filter_2)
  964.     $(SHP)gsaddmod filter -obj $(filter_3)
  965.     $(SHP)gsaddmod filter -oper zfilter2
  966.  
  967. ### Precompiled fonts.  See fonts.doc for more information.
  968.  
  969. CCFONT=$(OP) $(ccfont_h)
  970.  
  971. # List the fonts we are going to compile.
  972. # Because of intrinsic limitations in `make', we have to list
  973. # the object file names and the font names separately.
  974. ccfonts1_=uglyr.$(OBJ)
  975. ccfonts1=uglyr
  976.  
  977. ccfonts.dev: $(MAKEFILE) gs.mak iccfont.$(OBJ) \
  978.   $(ccfonts1_) $(ccfonts2_) $(ccfonts3_) $(ccfonts4_) $(ccfonts5_)
  979.     $(SHP)gssetmod ccfonts iccfont.$(OBJ)
  980.     $(SHP)gsaddmod ccfonts -obj $(ccfonts1_)
  981.     $(SHP)gsaddmod ccfonts -obj $(ccfonts2_)
  982.     $(SHP)gsaddmod ccfonts -obj $(ccfonts3_)
  983.     $(SHP)gsaddmod ccfonts -obj $(ccfonts4_)
  984.     $(SHP)gsaddmod ccfonts -obj $(ccfonts5_)
  985.     $(SHP)gsaddmod ccfonts -oper ccfonts
  986.  
  987. gconfigf.h: $(MAKEFILE) gs.mak genconf$(XE)
  988.     $(SHP)gssetmod ccfonts_
  989.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts1)
  990.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts2)
  991.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts3)
  992.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts4)
  993.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts5)
  994.     $(EXP)genconf ccfonts_.dev -f gconfigf.h
  995.  
  996. uglyr.$(OBJ): uglyr.c $(CCFONT)
  997.     $(CCCF) uglyr.c
  998.  
  999. ncrr.$(OBJ): ncrr.c $(CCFONT)
  1000.     $(CCCF) ncrr.c
  1001.  
  1002. pagk.$(OBJ): pagk.c $(CCFONT)
  1003.     $(CCCF) pagk.c
  1004.  
  1005. psyr.$(OBJ): psyr.c $(CCFONT)
  1006.     $(CCCF) psyr.c
  1007.  
  1008. ptmr.$(OBJ): ptmr.c $(CCFONT)
  1009.     $(CCCF) ptmr.c
  1010.  
  1011. pzdr.$(OBJ): pzdr.c $(CCFONT)
  1012.     $(CCCF) pzdr.c
  1013.  
  1014. # ----------------------------- Main program ------------------------------ #
  1015.  
  1016. # Interpreter main program
  1017.  
  1018. gs.$(OBJ): gs.c $(GH) $(ctype__h) \
  1019.   $(gxdevice_h) $(gxdevmem_h) \
  1020.   $(alloc_h) $(errors_h) $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  1021.  
  1022. gsmain.$(OBJ): gsmain.c $(GH) \
  1023.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  1024.   $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h)
  1025.  
  1026. interp.$(OBJ): interp.c $(GH) \
  1027.   $(errors_h) $(estack_h) $(iname_h) $(dict_h) $(dstack_h) $(iscan_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  1028.     $(CCINT) interp.c
  1029. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1030. #
  1031. # This file is part of Ghostscript.
  1032. #
  1033. # Ghostscript is distributed in the hope that it will be useful, but
  1034. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1035. # to anyone for the consequences of using it or for whether it serves any
  1036. # particular purpose or works at all, unless he says so in writing.  Refer
  1037. # to the Ghostscript General Public License for full details.
  1038. #
  1039. # Everyone is granted permission to copy, modify and redistribute
  1040. # Ghostscript, but only under the conditions described in the Ghostscript
  1041. # General Public License.  A copy of this license is supposed to have been
  1042. # given to you along with Ghostscript so you can know your rights and
  1043. # responsibilities.  It should be in a file named COPYING.  Among other
  1044. # things, the copyright notice and this notice must be preserved on all
  1045. # copies.
  1046.  
  1047. # makefile for Ghostscript device drivers.
  1048.  
  1049. # -------------------------------- Catalog ------------------------------- #
  1050.  
  1051. # It is possible to build Ghostscript with an arbitrary collection of
  1052. # device drivers, although some drivers are supported only on a subset
  1053. # of the target platforms.  The currently available drivers are:
  1054.  
  1055. # Displays:
  1056. #   MS-DOS EGA and VGA:
  1057. #    ega    EGA (640x350, 16-color)
  1058. #    vga    VGA (640x480, 16-color)
  1059. #   MS-DOS SuperVGA:
  1060. # +    atiw    ATI Wonder SuperVGA, 256-color modes
  1061. # +     atiw16  ATI Wonder SuperVGA in 800x600, 16-color mode
  1062. #    s3vga    SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  1063. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  1064. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  1065. # +    tvga    Trident SuperVGA, 256-color modes
  1066. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  1067. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  1068. #   ****** compiler or executable.
  1069. #    vesa    SuperVGA with VESA standard API driver
  1070. #   MS-DOS other:
  1071. #    bgi    Borland Graphics Interface (CGA)  [MS-DOS only]
  1072. # *    herc    Hercules Graphics display   [MS-DOS only]
  1073. #    mswin    Microsoft Windows 3.0, 3.1  [MS Windows only]
  1074. #    mswinprn  Microsoft Windows 3.0, 3.1 printer  [MS Windows only]
  1075. # *    pe    Private Eye display
  1076. #   Unix and VMS:
  1077. #   ****** NOTE: For direct frame buffer addressing under SCO Unix or Xenix,
  1078. #   ****** edit the definition of EGAVGA below.
  1079. # *    att3b1    AT&T 3b1/Unixpc monochrome display   [3b1 only]
  1080. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  1081. # *    sunview  SunView window system   [SunOS only]
  1082. #    x11    X Windows version 11, release >=3   [Unix and VMS only]
  1083. # Printers:
  1084. # *    appledmp  Apple Dot Matrix Printer (should also work with Imagewriter)
  1085. #    bj10e    Canon BubbleJet BJ10e
  1086. # *    bj200    Canon BubbleJet BJ200
  1087. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  1088. # *    cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and
  1089. #        high-quality color (Floyd-Steinberg) dithering
  1090. # *    cdjmono  H-P DeskJet 500C printing black only
  1091. # *    cdj500    H-P DeskJet 500C (same as cdjcolor)
  1092. # *    cdj550    H-P DeskJet 550C
  1093. # *    declj250  alternate DEC LJ250 driver
  1094. # +    deskjet  H-P DeskJet and DeskJet Plus
  1095. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  1096. # *    dfaxlow  DigiFAX low (normal) resolution
  1097. #    djet500  H-P DeskJet 500
  1098. # *    djet500c  H-P DeskJet 500C
  1099. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  1100. # +    eps9high  Epson-compatible 9-pin, interleaved lines
  1101. #        (triple resolution)
  1102. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  1103. # *    escp2    Epson ESC/P 2 language printers, including Stylus 800
  1104. # +     ibmpro  IBM 9-pin Proprinter
  1105. # *    jetp3852  IBM Jetprinter ink-jet color printer (Model #3852)
  1106. # +    laserjet  H-P LaserJet
  1107. # *    la50    DEC LA50 printer
  1108. # *    la75    DEC LA75 printer
  1109. # *    lbp8    Canon LBP-8II laser printer
  1110. # *    ln03    DEC LN03 printer
  1111. # *    lj250    DEC LJ250 Companion color printer
  1112. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  1113. # +    ljet3    H-P LaserJet III* with Delta Row compression
  1114. # +    ljetplus  H-P LaserJet Plus
  1115. # *    m8510    C.Itoh M8510 printer
  1116. # *    necp6    NEC P6/P6+/P60 printers at 360 x 360 DPI resolution
  1117. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  1118. # *    oki182    Okidata MicroLine 182
  1119. #    paintjet  H-P PaintJet color printer
  1120. # *    pj    alternate PaintJet XL driver 
  1121. # *    pjxl    H-P PaintJet XL color printer
  1122. # *    pjxl300  H-P PaintJet XL300 color printer
  1123. # *    r4081    Ricoh 4081 laser printer
  1124. # *    sparc    SPARCprinter
  1125. # *    t4693d2  Tektronix 4693d color printer, 2 bits per R/G/B component
  1126. # *    t4693d4  Tektronix 4693d color printer, 4 bits per R/G/B component
  1127. # *    t4693d8  Tektronix 4693d color printer, 8 bits per R/G/B component
  1128. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  1129. # *    trufax    TruFax facsimile driver  [Unix only]
  1130. # File formats and others:
  1131. #    bit    A plain "bit bucket" device
  1132. #    bmpmono    Monochrome MS Windows .BMP file format
  1133. #    bmp16    4-bit (EGA/VGA) .BMP file format
  1134. #    bmp256    8-bit (256-color) .BMP file format
  1135. #    bmp16m    24-bit .BMP file format
  1136. #    gifmono    Monochrome GIF file format
  1137. #    gif8    8-bit color GIF file format
  1138. #    pcxmono    Monochrome PCX file format
  1139. #    pcx16    Older color PCX file format (EGA/VGA, 16-color)
  1140. #    pcx256    Newer color PCX file format (256-color)
  1141. #    pbm    Portable Bitmap (plain format)
  1142. #    pbmraw    Portable Bitmap (raw format)
  1143. #    pgm    Portable Graymap (plain format)
  1144. #    pgmraw    Portable Graymap (raw format)
  1145. #    ppm    Portable Pixmap (plain format)
  1146. #    ppmraw    Portable Pixmap (raw format)
  1147. # *    tiffg3    TIFF/F (G3 fax)
  1148.  
  1149. # User-contributed drivers marked with * require hardware or software
  1150. # that is not available to Aladdin Enterprises.  Please contact the
  1151. # original contributors, not Aladdin Enterprises, if you have questions.
  1152. # Contact information appears in the driver entry below.
  1153. #
  1154. # Drivers marked with a + are maintained by Aladdin Enterprises with
  1155. # the assistance of users, since Aladdin Enterprises doesn't have access to
  1156. # the hardware for these either.
  1157.  
  1158. # If you add drivers, it would be nice if you kept each list
  1159. # in alphabetical order.
  1160.  
  1161. # Each platform-specific makefile contains a line of the form
  1162. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  1163. # where dev1 ... devn are the devices to be included in the build.
  1164. # You may edit this line to select any desired set of devices.
  1165. # dev1 will be used as the default device (unless overridden from
  1166. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  1167. # devices on a single line, you may add lines defining
  1168. #    DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  1169. #    DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  1170. # etc. up to DEVICE_DEVS9.
  1171. # Don't use continuation lines, since this may break the MS-DOS command
  1172. # processor.
  1173.  
  1174. # ---------------------------- End of catalog ---------------------------- #
  1175.  
  1176. # If you want to add a new device driver, the examples below should be
  1177. # enough of a guide to the correct form for the makefile rules.
  1178.  
  1179. # All device drivers depend on the following:
  1180. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  1181.  
  1182. # Define the header files for device drivers.  Every header file used by
  1183. # more than one device driver must be listed here.
  1184. gdevpccm_h=gdevpccm.h
  1185. gdevpcfb_h=gdevpcfb.h $(dos__h)
  1186. gdevpcl_h=gdevpcl.h
  1187. gdevsvga_h=gdevsvga.h
  1188. gdevx_h=gdevx.h
  1189.  
  1190. ###### ------------------- MS-DOS display devices ------------------- ######
  1191.  
  1192. # There are really only three drivers: an EGA/VGA driver (4 bit-planes,
  1193. # plane-addressed), a SuperVGA driver (8 bit-planes, byte addressed),
  1194. # and a special driver for the S3 chip.
  1195. # To make A4 paper the default, change the compilation line from
  1196. #    $(CCD) ...
  1197. # to
  1198. #    $(CCD) -DA4
  1199.  
  1200. ### ----------------------- EGA and VGA displays ----------------------- ###
  1201.  
  1202. gdevegaa.$(OBJ): gdevegaa.asm
  1203.  
  1204. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1205. ega.exe: $(ETEST) libc$(MM).tr
  1206.     $(COMPDIR)\tlink $(LCT) $(LO) $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1207.  
  1208. ega.$(OBJ): ega.c $(GDEV)
  1209.     $(CCC) -v ega.c
  1210.  
  1211. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1212. # or an empty string.
  1213.  
  1214. # NOTE: for direct frame buffer addressing under SCO Unix or Xenix,
  1215. # change gdevevga to gdevsco in the following line.
  1216. EGAVGA=gdevevga.$(OBJ) gdevpcfb.$(OBJ) $(PCFBASM)
  1217.  
  1218. gdevevga.$(OBJ): gdevevga.c $(GDEV) $(gdevpcfb_h)
  1219.     $(CCD) gdevevga.c
  1220.  
  1221. gdevsco.$(OBJ): gdevsco.c $(GDEV) $(gdevpcfb_h)
  1222.     $(CCD) gdevsco.c
  1223.  
  1224. # Common code for MS-DOS and SCO.
  1225. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h)
  1226.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1227.  
  1228. # The EGA/VGA family includes: EGA, VGA, and
  1229. # the ATI Wonder, Tseng ET3000/4000, and Trident SuperVGA in 16-color mode.
  1230.  
  1231. ega.dev: $(EGAVGA)
  1232.     $(SHP)gssetdev ega $(EGAVGA)
  1233.  
  1234. vga.dev: $(EGAVGA)
  1235.     $(SHP)gssetdev vga $(EGAVGA)
  1236.  
  1237. atiw16.dev: $(EGAVGA)
  1238.     $(SHP)gssetdev atiw16 $(EGAVGA)
  1239.  
  1240. tseng16.dev: $(EGAVGA)
  1241.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1242.  
  1243. tvga16.dev: $(EGAVGA)
  1244.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1245.  
  1246. ### ------------------------- SuperVGA displays ------------------------ ###
  1247.  
  1248. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1249.  
  1250. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) \
  1251.   $(gdevpcfb_h) $(gdevsvga_h)
  1252.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1253.  
  1254. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1255. # and VESA.
  1256.  
  1257. atiw.dev: $(SVGA)
  1258.     $(SHP)gssetdev atiw $(SVGA)
  1259.  
  1260. tseng.dev: $(SVGA)
  1261.     $(SHP)gssetdev tseng $(SVGA)
  1262.  
  1263. tvga.dev: $(SVGA)
  1264.     $(SHP)gssetdev tvga $(SVGA)
  1265.  
  1266. vesa.dev: $(SVGA)
  1267.     $(SHP)gssetdev vesa $(SVGA)
  1268.  
  1269. # The S3 driver doesn't share much code with the others.
  1270.  
  1271. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1272. s3vga.dev: $(s3vga_)
  1273.     $(SHP)gssetdev s3vga $(s3vga_)
  1274.  
  1275. gdevs3ga.$(OBJ): gdevs3ga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1276.     $(CCD) gdevs3ga.c
  1277.  
  1278. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1279.  
  1280. cgaf.$(OBJ): $(BGIDIR)\cga.bgi
  1281.     $(BGIDIR)\bgiobj /F $(BGIDIR)\cga
  1282.  
  1283. egavgaf.$(OBJ): $(BGIDIR)\egavga.bgi
  1284.     $(BGIDIR)\bgiobj /F $(BGIDIR)\egavga
  1285.  
  1286. # Include egavgaf.$(OBJ) for debugging only.
  1287. bgi_=gdevbgi.$(OBJ) cgaf.$(OBJ)
  1288. bgi.dev: $(bgi_)
  1289.     $(SHP)gssetdev bgi $(bgi_)
  1290.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1291.  
  1292. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE) $(gxxfont_h)
  1293.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIRSTR)$(QQ) gdevbgi.c
  1294.  
  1295. ### ------------------- The Hercules Graphics display ------------------- ###
  1296.  
  1297. herc_=gdevherc.$(OBJ)
  1298. herc.dev: $(herc_)
  1299.     $(SHP)gssetdev herc $(herc_)
  1300.  
  1301. gdevherc.$(OBJ): gdevherc.c $(GDEV)
  1302.     $(CCC) gdevherc.c
  1303.  
  1304. ###### ------------------- The Private Eye display ------------------- ######
  1305. ### Note: this driver was contributed by a user:                          ###
  1306. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1307.  
  1308. pe_=gdevpe.$(OBJ)
  1309. pe.dev: $(pe_)
  1310.     $(SHP)gssetdev pe $(pe_)
  1311.  
  1312. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1313.  
  1314. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1315.  
  1316. gdevmswn_h=gdevmswn.h $(GDEV) gp_mswin.h
  1317.  
  1318. # Choose one of gdevwddb or gdevwdib here.
  1319. mswin_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \
  1320.   gdevemap.$(OBJ) gdevpccm.$(OBJ)
  1321. mswin.dev: $(mswin_)
  1322.     $(SHP)gssetdev mswin $(mswin_)
  1323.  
  1324. gdevmswn.$(OBJ): gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1325.   $(gsprops_h) $(gdevpccm_h)
  1326.  
  1327. gdevmsxf.$(OBJ): gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) \
  1328.   $(gdevmswn_h) $(gsutil_h) $(gxxfont_h)
  1329.  
  1330. # An implementation using a device-dependent bitmap.
  1331. gdevwddb.$(OBJ): gdevwddb.c $(gdevmswn_h)
  1332.  
  1333. # An implementation using a DIB filled by an image device.
  1334. gdevwdib.$(OBJ): gdevwdib.c $(dos__h) $(gdevmswn_h)
  1335.  
  1336. ###### ----------------- The MS-Windows 3.n printer ------------------ ######
  1337.  
  1338. mswinprn_=gdevwprn.$(OBJ) gdevmsxf.$(OBJ)
  1339. mswinprn.dev: $(mswinprn_)
  1340.     $(SHP)gssetdev mswinprn $(mswinprn_)
  1341.  
  1342. gdevwprn.$(OBJ): gdevwprn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1343.   $(gsprops_h) $(gdevpccm_h)
  1344.  
  1345. ###### ----------- The AT&T 3b1 Unixpc monochrome display ------------ ######
  1346. ### Note: this driver was contributed by a user: please contact           ###
  1347. ###       Andy Fyfe (andy@cs.caltech.edu) if you have questions.          ###
  1348.  
  1349. att3b1_=gdev3b1.$(OBJ)
  1350. att3b1.dev: $(att3b1_)
  1351.     $(SHP)gssetdev att3b1 $(att3b1_)
  1352.  
  1353. gdev3b1.$(OBJ): gdev3b1.c
  1354.  
  1355. ###### --------------- Memory-buffered printer devices --------------- ######
  1356.  
  1357. # The dependency list for printers includes devs.mak because
  1358. # you can specify -DA4 to make A4 paper the default.
  1359. # See below under, e.g., gdevdjet.c.
  1360. PDEVH=$(GDEV) $(gdevprn_h) devs.mak
  1361.  
  1362. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1363.  
  1364. ### ------------------- The Apple DMP printer device ------------------- ###
  1365.  
  1366. appledmp_=gdevadmp.$(OBJ) gdevprn.$(OBJ)
  1367.  
  1368. appledmp.dev: $(appledmp_)
  1369.     $(SHP)gssetdev appledmp $(appledmp_)
  1370.  
  1371. ### ------------ The Canon BubbleJet BJ10e and BJ200 devices ------------ ###
  1372.  
  1373. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1374.  
  1375. bj10e.dev: $(bj10e_)
  1376.     $(SHP)gssetdev bj10e $(bj10e_)
  1377.  
  1378. bj200.dev: $(bj10e_)
  1379.     $(SHP)gssetdev bj200 $(bj10e_)
  1380.  
  1381. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1382.  
  1383. ### -------------------------- The DigiFAX device ----------------------- ###
  1384. ###    This driver outputs images in a format suitable for use with       ###
  1385. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1386. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1387. ### Note: this driver was contributed by a user: please contact           ###
  1388. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1389.  
  1390. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1391. dfaxhigh.dev: $(digifax_)
  1392.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1393.  
  1394. dfaxlow.dev: $(digifax_)
  1395.     $(SHP)gssetdev dfaxlow $(digifax_)
  1396.  
  1397. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1398.  
  1399. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1400.  
  1401. ### These are essentially the same device.
  1402. ### You can make A4 paper the default: see below.
  1403. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1404. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1405.  
  1406. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1407. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1408.  
  1409. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1410.  
  1411. # To make A4 paper the default, change the second line below this to
  1412. #    $(CCC) -DA4 gdevdjet.c
  1413. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1414.     $(CCC) gdevdjet.c
  1415.  
  1416. deskjet.dev: $(HPMONO)
  1417.     $(SHP)gssetdev deskjet $(HPMONO)
  1418.  
  1419. djet500.dev: $(HPMONO)
  1420.     $(SHP)gssetdev djet500 $(HPMONO)
  1421.  
  1422. laserjet.dev: $(HPMONO)
  1423.     $(SHP)gssetdev laserjet $(HPMONO)
  1424.  
  1425. ljetplus.dev: $(HPMONO)
  1426.     $(SHP)gssetdev ljetplus $(HPMONO)
  1427.  
  1428. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1429. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1430.  
  1431. ljet2p.dev: $(HPMONO)
  1432.     $(SHP)gssetdev ljet2p $(HPMONO)
  1433.  
  1434. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1435. ### IIIp, IIId, IIIsi.
  1436.  
  1437. ljet3.dev: $(HPMONO)
  1438.     $(SHP)gssetdev ljet3 $(HPMONO)
  1439.  
  1440. ###- The H-P DeskJet 500C/550C and PaintJet family color printer devices -###
  1441. ### Note: there are two different 500C drivers, both contributed by users.###
  1442. ###   If you have questions about the djet500c driver,                    ###
  1443. ###       please contact AKayser@et.tudelft.nl.                           ###
  1444. ###   If you have questions about the cdj* drivers,                       ###
  1445. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1446.  
  1447. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1448.  
  1449. cdeskjet.dev: $(cdeskjet_)
  1450.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1451.  
  1452. cdjcolor.dev: $(cdeskjet_)
  1453.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1454.  
  1455. cdjmono.dev: $(cdeskjet_)
  1456.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1457.  
  1458. cdj500.dev: $(cdeskjet_)
  1459.     $(SHP)gssetdev cdj500 $(cdeskjet_)
  1460.  
  1461. cdj550.dev: $(cdeskjet_)
  1462.     $(SHP)gssetdev cdj550 $(cdeskjet_)
  1463.  
  1464. declj250.dev: $(cdeskjet_)
  1465.     $(SHP)gssetdev declj250 $(cdeskjet_)
  1466.  
  1467. pj.dev: $(cdeskjet_)
  1468.     $(SHP)gssetdev pj $(cdeskjet_)
  1469.  
  1470. pjxl.dev: $(cdeskjet_)
  1471.     $(SHP)gssetdev pjxl $(cdeskjet_)
  1472.  
  1473. pjxl300.dev: $(cdeskjet_)
  1474.     $(SHP)gssetdev pjxl300 $(cdeskjet_)
  1475.  
  1476. # NB: you can also customise the build if required, using -DA4 (for A4 paper)
  1477. # and -DBitsPerPixel=<number> if you wish the default to be other than 24
  1478. # for the generic drivers (cdj500, cdj550, pjxl300, pjtest, pjxltest).
  1479. # E.g,. to make A4 paper the default, change the second line below this to
  1480. #    $(CCC) -DA4 gdevdjet.c
  1481. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1482.     $(CCC) gdevcdj.c
  1483.  
  1484. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1485. djet500c.dev: $(djet500c_)
  1486.     $(SHP)gssetdev djet500c $(djet500c_)
  1487.  
  1488. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1489.  
  1490. ### ----------------- The generic Epson printer device ----------------- ###
  1491.  
  1492. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1493.  
  1494. epson.dev: $(epson_)
  1495.     $(SHP)gssetdev epson $(epson_)
  1496.  
  1497. eps9high.dev: $(epson_)
  1498.     $(SHP)gssetdev eps9high $(epson_)
  1499.  
  1500. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  1501.  
  1502. ### ----------------- The IBM Proprinter printer device ---------------- ###
  1503.  
  1504. ibmpro.dev: $(epson_)
  1505.     $(SHP)gssetdev ibmpro $(epson_)
  1506.  
  1507. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1508. ### Note: this driver was contributed by users: please contact           ###
  1509. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1510.  
  1511. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1512. epsonc.dev: $(epsonc_)
  1513.     $(SHP)gssetdev epsonc $(epsonc_)
  1514.  
  1515. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH)
  1516.  
  1517. ### -------------- The Epson ESC/P 2 language printer device ----------- ###
  1518. ### Note: this driver was contributed by a user: if you have questions,  ###
  1519. ###       please contact Richard Brown (rab@tauon.ph.unimelb.edu.au).    ###
  1520.  
  1521. escp2_=gdevescp2.$(OBJ) gdevprn.$(OBJ)
  1522. escp2.dev: $(escp2_)
  1523.     $(SHP)gssetdev escp2 $(escp2_)
  1524.  
  1525. gdevescp2.$(OBJ): gdevescp2.c $(PDEVH)
  1526.  
  1527. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1528. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1529. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1530. ### If you have questions about the XL, please contact Rob Reiss         ###
  1531. ###       (rob@moray.berkeley.edu).                                      ###
  1532.  
  1533. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1534.  
  1535. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1536.  
  1537. lj250.dev: $(PJET)
  1538.     $(SHP)gssetdev lj250 $(PJET)
  1539.  
  1540. paintjet.dev: $(PJET)
  1541.     $(SHP)gssetdev paintjet $(PJET)
  1542.  
  1543. pjetxl.dev: $(PJET)
  1544.     $(SHP)gssetdev pjetxl $(PJET)
  1545.  
  1546. ### ------- The IBM 3852 JetPrinter color inkjet printer device -------- ###
  1547. ### Note: this driver was contributed by users: please contact           ###
  1548. ###       Kevin Gift (kgift@draper.com) if you have questions.           ###
  1549. ### Note that the paper size that can be addressed by the graphics mode  ###
  1550. ###   used in this driver is fixed at 7-1/2 inches wide (the printable   ###
  1551. ###   width of the jetprinter itself.)                                   ###
  1552.  
  1553. jetp3852_=gdev3852.$(OBJ) gdevprn.$(OBJ)
  1554. jetp3852.dev: $(jetp3852_)
  1555.     $(SHP)gssetdev jetp3852 $(jetp3852_)
  1556.  
  1557. gdevjetp.$(OBJ): gdevjetp.c $(PDEVH) $(gdevpcl_h)
  1558.  
  1559. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1560. ### Note: this driver was contributed by users: please contact           ###
  1561. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1562. ### Note that the standard paper size for this driver is the European    ###
  1563. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1564.  
  1565. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1566. lbp8.dev: $(lbp8_)
  1567.     $(SHP)gssetdev lbp8 $(lbp8_)
  1568.  
  1569. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1570.  
  1571. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1572. ### Note: this driver was contributed by users: please contact           ###
  1573. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1574. ### For questions about LA50 and LA75: please contact                    ###
  1575. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                     ###
  1576. ### For the LN03, you can make A4 paper the default: see below.          ###
  1577.  
  1578. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1579. ln03.dev: $(ln03_)
  1580.     $(SHP)gssetdev ln03 $(ln03_)
  1581.  
  1582. la50.dev: $(ln03_)
  1583.     $(SHP)gssetdev la50 $(ln03_)
  1584.  
  1585. la75.dev: $(ln03_)
  1586.     $(SHP)gssetdev la75 $(ln03_)
  1587.  
  1588. # To make A4 paper the default, change the second line below this to
  1589. #    $(CCC) -DA4 gdevln03.c
  1590. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1591.     $(CCC) gdevln03.c
  1592.  
  1593. ### -------------- The C.Itoh M8510 printer device --------------------- ###
  1594. ### Note: this driver was contributed by a user: please contact Bob      ###
  1595. ###       Smith <bob@snuffy.penfield.ny.us> if you have questions.       ###
  1596.  
  1597. m8510_=gdev8510.$(OBJ) gdevprn.$(OBJ)
  1598. m8510.dev: $(m8510_)
  1599.     $(SHP)gssetdev m8510 $(m8510_)
  1600.  
  1601. gdev8510.$(OBJ): gdev8510.c $(PDEVH)
  1602.  
  1603. ### --------------------- The NEC P6 family devices -------------------- ###
  1604.  
  1605. necp6_=gdevnp6.$(OBJ) gdevprn.$(OBJ)
  1606. necp6.dev: $(necp6_)
  1607.     $(SHP)gssetdev necp6 $(necp6_)
  1608.  
  1609. gdevnp6.$(OBJ): gdevnp6.c $(PDEVH)
  1610.  
  1611. ### ----------------- The Okidata MicroLine 182 device ----------------- ###
  1612. ### Note: this driver was contributed by a user: please contact          ###
  1613. ###       Maarten Koning (smeg@bnr.ca) if you have questions.            ###
  1614.  
  1615. oki182_=gdevo182.$(OBJ) gdevprn.$(OBJ)
  1616. oki182.dev: $(oki182_)
  1617.     $(SHP)gssetdev oki182 $(oki182_)
  1618.  
  1619. gdevo182.$(OBJ): gdevo182.c $(PDEVH)
  1620.  
  1621. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1622. ### Note: this driver was contributed by users:                          ###
  1623. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1624.  
  1625. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1626. r4081.dev: $(r4081_)
  1627.     $(SHP)gssetdev r4081 $(r4081_)
  1628.  
  1629. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1630.  
  1631. ###### ------------------------ Sony devices ------------------------ ######
  1632. ### Note: these drivers were contributed by users: please contact        ###
  1633. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1634.  
  1635. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1636.  
  1637. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1638. sonyfb.dev: $(sonyfb_)
  1639.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1640.  
  1641. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1642.  
  1643. ### -------------------- Sony NWP533 printer device -------------------- ###
  1644. ### Note: this driver was contributed by a user: please contact Tero     ###
  1645. ###       Kivinen (kivinen@joker.cs.hut.fi) if you have questions.       ###
  1646.  
  1647. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1648. nwp533.dev: $(nwp533_)
  1649.     $(SHP)gssetdev nwp533 $(nwp533_)
  1650.  
  1651. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1652.  
  1653. ### ------------------------- The SPARCprinter ------------------------- ###
  1654. ### Note: this driver was contributed by users: please contact Martin    ###
  1655. ###       Schulte (schulte@thp.uni-koeln.de) if you have questions.      ###
  1656. ###       He would also like to hear from anyone using the driver.       ###
  1657. ### Please consult the source code for additional documentation.         ###
  1658.  
  1659. sparc_=gdevsppr.$(OBJ) gdevprn.$(OBJ)
  1660. sparc.dev: $(sparc_)
  1661.     $(SHP)gssetdev sparc $(sparc_)
  1662.  
  1663. gdevsppr.$(OBJ): gdevsppr.c $(PDEVH)
  1664.  
  1665. ###### --------------------- The SunView device --------------------- ######
  1666. ### Note: this driver is maintained by a user: if you have questions,    ###
  1667. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1668.  
  1669. sunview_=gdevsun.$(OBJ)
  1670. sunview.dev: $(sunview_)
  1671.     $(SHP)gssetdev sunview $(sunview_)
  1672.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1673.  
  1674. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1675.  
  1676. ### ----------------- Tektronix 4396d color printer -------------------- ###
  1677. ### Note: this driver was contributed by a user: please contact          ###
  1678. ###       Karl Hakimian (hakimian@haney.eecs.wsu.edu)                    ###
  1679. ###       if you have questions.                                         ###
  1680.  
  1681. t4693d_=gdev4693.$(OBJ) gdevprn.$(OBJ)
  1682. t4693d2.dev: $(t4693d_)
  1683.     $(SHP)gssetdev t4693d2 $(t4693d_)
  1684.  
  1685. t4693d4.dev: $(t4693d_)
  1686.     $(SHP)gssetdev t4693d4 $(t4693d_)
  1687.  
  1688. t4693d8.dev: $(t4693d_)
  1689.     $(SHP)gssetdev t4693d8 $(t4693d_)
  1690.  
  1691. gdev4693.$(OBJ): gdev4693.c $(GDEV)
  1692.  
  1693. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1694. ### Note: this driver was contributed by a user: please contact          ###
  1695. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1696.  
  1697. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1698. tek4696.dev: $(tek4696_)
  1699.     $(SHP)gssetdev tek4696 $(tek4696_)
  1700.  
  1701. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1702.  
  1703. ### ----------------- The TruFax facsimile device ---------------------- ###
  1704. ### Note: this driver was contributed by users: please contact           ###
  1705. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1706. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1707. ###   makers of the TruFax product.                                      ###
  1708.  
  1709. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1710. trufax.dev: $(trufax_)
  1711.     $(SHP)gssetdev trufax $(trufax_)
  1712.  
  1713. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1714.  
  1715. ###### ----------------------- The X11 device ----------------------- ######
  1716.  
  1717. # Aladdin Enterprises does not support Ghostview.  For more information
  1718. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1719.  
  1720. # NOTE: Xmu and Xext are here to keep Sun's dynamic linker happy.  No
  1721. #       routines are used from either of these two libraries.  If you
  1722. #       do not have libXmu.a or libXext.a, simply remove these two lines
  1723. #       from the Makefile.
  1724. x11_=gdevx.$(OBJ) gdevxini.$(OBJ) gdevxxf.$(OBJ) gdevemap.$(OBJ)
  1725. x11.dev: $(x11_)
  1726.     $(SHP)gssetdev x11 $(x11_)
  1727.     $(SHP)gsaddmod x11 -lib Xt Xmu X11 Xext
  1728.  
  1729. # See the main makefile for the definition of XINCLUDE.
  1730. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1731. gdevx.$(OBJ): gdevx.c $(GDEVX) $(gsprops_h) $(gsutil_h)
  1732.     $(CCC) $(XINCLUDE) gdevx.c
  1733.  
  1734. gdevxini.$(OBJ): gdevxini.c $(GDEVX) $(ctype__h)
  1735.     $(CCC) $(XINCLUDE) gdevxini.c
  1736.  
  1737. gdevxxf.$(OBJ): gdevxxf.c $(GDEVX) $(gsutil_h) $(gxxfont_h)
  1738.     $(CCC) $(XINCLUDE) gdevxxf.c
  1739.  
  1740. ### ---------------------- The bit bucket device ----------------------- ###
  1741.  
  1742. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1743. bit.dev: $(bit_)
  1744.     $(SHP)gssetdev bit $(bit_)
  1745.  
  1746. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1747.  
  1748. ###### ----------------------- PC file formats ---------------------- ######
  1749.  
  1750. gdevpccm.$(OBJ): gdevpccm.c $(AK) \
  1751.   $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1752.  
  1753. ### ------------------------- .BMP file formats ------------------------- ###
  1754.  
  1755. bmp_=gdevbmp.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1756.  
  1757. gdevbmp.$(OBJ): gdevbmp.c $(PDEVH) $(gdevpccm_h)
  1758.  
  1759. bmpmono.dev: $(bmp_)
  1760.     $(SHP)gssetdev bmpmono $(bmp_)
  1761.  
  1762. bmp16.dev: $(bmp_)
  1763.     $(SHP)gssetdev bmp16 $(bmp_)
  1764.  
  1765. bmp256.dev: $(bmp_)
  1766.     $(SHP)gssetdev bmp256 $(bmp_)
  1767.  
  1768. bmp16m.dev: $(bmp_)
  1769.     $(SHP)gssetdev bmp16m $(bmp_)
  1770.  
  1771. ### ------------------------- GIF file formats ------------------------- ###
  1772.  
  1773. GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1774.  
  1775. gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
  1776.  
  1777. gifmono.dev: $(GIF)
  1778.     $(SHP)gssetdev gifmono $(GIF)
  1779.  
  1780. gif8.dev: $(GIF)
  1781.     $(SHP)gssetdev gif8 $(GIF)
  1782.  
  1783. ### ------------------------- PCX file formats ------------------------- ###
  1784.  
  1785. pcx_=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1786.  
  1787. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
  1788.  
  1789. pcxmono.dev: $(pcx_)
  1790.     $(SHP)gssetdev pcxmono $(pcx_)
  1791.  
  1792. pcx16.dev: $(pcx_)
  1793.     $(SHP)gssetdev pcx16 $(pcx_)
  1794.  
  1795. pcx256.dev: $(pcx_)
  1796.     $(SHP)gssetdev pcx256 $(pcx_)
  1797.  
  1798. ###### ------------------- Portable Bitmap devices ------------------ ######
  1799. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1800.  
  1801. pxm_=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1802.  
  1803. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1804.  
  1805. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1806.  
  1807. pbm.dev: $(pxm_)
  1808.     $(SHP)gssetdev pbm $(pxm_)
  1809.  
  1810. pbmraw.dev: $(pxm_)
  1811.     $(SHP)gssetdev pbmraw $(pxm_)
  1812.  
  1813. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1814.  
  1815. pgm.dev: $(pxm_)
  1816.     $(SHP)gssetdev pgm $(pxm_)
  1817.  
  1818. pgmraw.dev: $(pxm_)
  1819.     $(SHP)gssetdev pgmraw $(pxm_)
  1820.  
  1821. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1822.  
  1823. ppm.dev: $(pxm_)
  1824.     $(SHP)gssetdev ppm $(pxm_)
  1825.  
  1826. ppmraw.dev: $(pxm_)
  1827.     $(SHP)gssetdev ppmraw $(pxm_)
  1828.  
  1829. ### -------------------------- TIFF/F device ---------------------------- ###
  1830. ###    This driver outputs images in a TIFF format               ###
  1831. ###    Use -sDEVICE=tiffg3 and                          ###
  1832. ###      -r204x98 for low resolution output, or              ###
  1833. ###      -r204x196 for high resolution output                  ###
  1834. ###    Note also that 3 page sizes are understood: letter, A4, and B4      ###
  1835. ### Note: this driver was contributed by a user: please contact           ###
  1836. ###       Sam Leffler (sam@sgi.com) if you have questions.              ###
  1837.  
  1838. tiffg3_=gdevtiff.$(OBJ) gdevprn.$(OBJ)
  1839. tiffg3.dev: $(tiffg3_)
  1840.     $(SHP)gssetdev tiffg3 $(tiffg3_)
  1841. gdevtiff.$(OBJ): gdevtiff.c $(GDEV) $(gdevprn_h) gdevdfg3.h gdevtiff.h
  1842. #    Copyright (C) 1990, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1843. #
  1844. # This file is part of Ghostscript.
  1845. #
  1846. # Ghostscript is distributed in the hope that it will be useful, but
  1847. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1848. # to anyone for the consequences of using it or for whether it serves any
  1849. # particular purpose or works at all, unless he says so in writing.  Refer
  1850. # to the Ghostscript General Public License for full details.
  1851. #
  1852. # Everyone is granted permission to copy, modify and redistribute
  1853. # Ghostscript, but only under the conditions described in the Ghostscript
  1854. # General Public License.  A copy of this license is supposed to have been
  1855. # given to you along with Ghostscript so you can know your rights and
  1856. # responsibilities.  It should be in a file named COPYING.  Among other
  1857. # things, the copyright notice and this notice must be preserved on all
  1858. # copies.
  1859.  
  1860. # Partial makefile for Ghostscript, common to all Unix configurations.
  1861.  
  1862. # This is the last part of the makefile for Unix configurations.
  1863. # Since Unix make doesn't have an 'include' facility, we concatenate
  1864. # the various parts of the makefile together by brute force (in tar_cat).
  1865.  
  1866. # The following prevents GNU make from constructing argument lists that
  1867. # include all environment variables, which can easily be longer than
  1868. # brain-damaged system V allows.
  1869.  
  1870. .NOEXPORT:
  1871.  
  1872. # -------------------------------- Library -------------------------------- #
  1873.  
  1874. ## The Unix platforms
  1875.  
  1876. # We have to include a test for the existence of sys/time.h,
  1877. # because some System V platforms don't have it.
  1878.  
  1879. # All reasonable Unix platforms.
  1880. unix__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gdevpipe.$(OBJ)
  1881. unix_.dev: $(unix__)
  1882.     $(SHP)gssetmod unix_ $(unix__)
  1883.     $(SHP)gsaddmod unix_ -fdev pipe
  1884.  
  1885. gp_unix.$(OBJ): gp_unix.c $(AK) $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1886.  $(stat__h) $(time__h)
  1887.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_unix.c;\
  1888.     else $(CCC) -DNOSYSTIME gp_unix.c; fi
  1889.  
  1890. gdevpipe.$(OBJ): gdevpipe.c $(AK) $(stdio__h) $(gstypes_h) \
  1891.   $(filedev_h) $(stream_h)
  1892.  
  1893. # Brain-damaged System V platforms.
  1894. sysv__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_sysv.$(OBJ)
  1895. sysv_.dev: $(sysv__)
  1896.     $(SHP)gssetmod sysv_ $(sysv__)
  1897.  
  1898. gp_sysv.$(OBJ): gp_sysv.c $(time__h) $(AK)
  1899.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_sysv.c;\
  1900.     else $(CCC) -DNOSYSTIME gp_sysv.c; fi
  1901.  
  1902. # -------------------------- Auxiliary programs --------------------------- #
  1903.  
  1904. ansi2knr$(XE): ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  1905.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1906.  
  1907. echogs$(XE): echogs.c
  1908.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  1909.  
  1910. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  1911. # produces a buggy executable.
  1912. genarch$(XE): genarch.c
  1913.     $(CC) -o genarch$(XE) genarch.c
  1914.  
  1915. genconf$(XE): genconf.c
  1916.     $(CC) -o genconf$(XE) genconf.c
  1917.  
  1918. # ----------------------------- Main program ------------------------------ #
  1919.  
  1920. BEGINFILES=
  1921. CCBEGIN=$(CCC) *.c
  1922.  
  1923. # Interpreter main program
  1924.  
  1925. GSUNIX=gs.$(OBJ) gsmain.$(OBJ) $(INT) $(LIBGS)
  1926.  
  1927. # The second call on echogs writes a \.  This is the only
  1928. # way to do it that works with all flavors of shell!
  1929. $(GS)$(XE): $(GSUNIX) ld.tr echogs $(ALL_DEVS)
  1930.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  1931.     ./echogs -x 205c >>_temp_
  1932.     cat ld.tr >>_temp_
  1933.     ./echogs - $(EXTRALIBS) -lm >>_temp_
  1934.     $(SH) <_temp_
  1935.  
  1936. # Installation
  1937.  
  1938. TAGS:
  1939.     etags -t *.c *.h
  1940.  
  1941. docdir=$(gsdatadir)/doc
  1942. exdir=$(gsdatadir)/examples
  1943.  
  1944. install: gs
  1945.     -mkdir $(bindir)
  1946.     for f in gs gsbj gsdj gslj gslp gsnd bdftops font2c ps2ascii ps2epsi ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
  1947.     -mkdir $(datadir)
  1948.     -mkdir $(gsdatadir)
  1949.     for f in README gslp.ps gs_init.ps gs_dps1.ps gs_fonts.ps gs_lev2.ps gs_statd.ps gs_type0.ps gs_sym_e.ps quit.ps Fontmap uglyr.gsf bdftops.ps decrypt.ps font2c.ps impath.ps landscap.ps level1.ps prfont.ps ps2ascii.ps ps2epsi.ps ps2image.ps pstoppm.ps showpage.ps type1ops.ps wrfont.ps ; do $(INSTALL_DATA) $$f $(gsdatadir)/$$f ; done
  1950.     -mkdir $(docdir)
  1951.     for f in NEWS ansi2knr.1 devices.doc drivers.doc fonts.doc gs.1 hershey.doc history.doc humor.doc language.doc lib.doc make.doc ps2epsi.doc psfiles.doc readme.doc use.doc xfonts.doc ; do $(INSTALL_DATA) $$f $(docdir)/$$f ; done
  1952.     -mkdir $(exdir)
  1953.     for f in chess.ps cheq.ps colorcir.ps golfer.ps escher.ps snowflak.ps tiger.ps ; do $(INSTALL_DATA) $$f $(exdir)/$$f ; done
  1954.